package cn.dnuihyy406.dnuifood_16110100406.service;

import java.util.List;

import cn.dnuihyy406.dnuifood_16110100406.bean.GetCommentBean;
import cn.dnuihyy406.dnuifood_16110100406.bean.GetUserBean;
import cn.dnuihyy406.dnuifood_16110100406.bean.ResultBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserImformationService {

    @GET("getUserById.do")
    Call <GetUserBean> getUserById(
            @Query("user_id") String user_id);

    @GET("updateUserById.do")
    Call <ResultBean> updateUserById(
            @Query("user_id") String user_id,
            @Query("username") String username,
            @Query("userpass") String userpass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address
    );

    @GET("getAllOrdersByUser.do")
    Call <List<GetCommentBean>>getAllOrdersByUser(
            @Query("user_id")String user_id
    );

    @GET("getAllCommentsByUser.do")
    Call <List<GetCommentBean>>getAllCommentsByUser(
            @Query("user_id")String user_id
    );

    @GET("updateComment.do")
    Call<ResultBean>updateComment(
            @Query("item_id")String item_id,
            @Query("content")String content
    );

    @GET("deleteComment.do")
    Call <ResultBean>deleteComment(
            @Query("item_id")String item_id
    );
}